<?php
include 'config.php';

$query = mysql_query('SELECT adminId FROM admin WHERE 
adminUsername = "'.$_GET['username'].'" AND 
adminPassword = "'.$_GET['password'].'" LIMIT 1')or die (mysql_error());

$count = mysql_num_rows($query);

echo $count;

?>